﻿@{
    ViewBag.Title = "ObjectCompare";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Object Compare</h2>

<script type="text/javascript">
    function TestObj() {
        
    }

    window.onload = function () {
        var obj = {
            myprop: 'my value'
        };

        var obj2 = {
            myprop: 'my value'
        };

        ZEUS.DEBUG.log("obj === obj2:");
        ZEUS.DEBUG.log(obj === obj2); 
        ZEUS.DEBUG.log("obj == obj2:");
        ZEUS.DEBUG.log(obj == obj2); 

        var obj3 = new TestObj();
        var obj4 = new TestObj();
        ZEUS.DEBUG.log("obj3 == obj4:");
        ZEUS.DEBUG.log(obj3 == obj4);
    }
</script>